<?php

class IndexController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        $form = new Form_ContactForm();
        $this->view->form = $form;
        echo $this->_getParam('id');
        
        $this->view->messages = $this->_helper->flashMessenger->getMessages();
        
        if($this->getRequest()->isPost())
        {
            $data = $form->getValues();
            $request = $this->getRequest();
             if($form->isValid($request->getPost())) {
                //do some saves here
                $data = $request->getPost();
                echo '<pre>'; print_r($data); die;
            }
            
        }
    }


}

